import {
  databaseProviderName,
  reservationModelProvider,
} from '@app/common/constants';
import { Connection } from 'mongoose';
import schema from '../schemas/reservation.schema';
const docName: string = 'reservations';

export const reservationProviders = [
  {
    provide: reservationModelProvider,
    useFactory: (connection: Connection) => connection.model(docName, schema),
    inject: [databaseProviderName],
  },
];
